﻿<form action="{site_url('admin/contacts/save')}" method="post">
	{if $this->session->flashdata('message')}
		<p>{$this->session->flashdata('message')}</p>
	{/if}
	<table border="0" cellpadding="0" cellspacing="0" width="720px">
		<tbody>
		<tr>			
			<td height="90px"><textarea class="mess" name="welcome" cols="" rows="">{$welcome}</textarea></td>
			<td>Welcome <span>(*)</span></td>	
			<td>{form_error('welcome')}</td>			
		</tr>
		<tr>
			<td width="340px"><input class="input" name="phone" type="text" value="{$phone}"></td>
			<td style="width:220px;">Телефон <span>(*)</span></td>
			<td style="width:300px;">{form_error('phone')}</td>
		</tr>
		<tr>
			<td height="51px"><input class="input" name="email" type="text" value="{$email}"></td>
			<td>Электронная почта <span>(*)</span></td>
			<td>{form_error('email')}</td>			
		</tr>
		<tr>			
			<td><input class="input" name="working_hours" type="text" value="{$working_hours}"></td>
			<td>Рабочие часы</td>
			<td>{form_error('working_hours')}</td>			
		</tr>
		<tr>			
			<td height="90px"><textarea class="mess" name="address" cols="" rows="">{$address}</textarea></td>
			<td>Адрес <span>(*)</span></td>	
			<td>{form_error('address')}</td>			
		</tr>
	</tbody></table>
	<button type="reset" class="btn btn-warning cancel" onclick="onCancel({$i})">
		<i class="icon-ban-circle icon-white"></i>
		<span>Отменить</span>
	</button>	
	<button type="submit" class="btn btn-primary accept" onclick="onAccept({$i})">
		<i class="icon-upload icon-white"></i>
		<span>Принимать</span>
	</button>	
</form>